<?php


namespace App\Http\Models\Student;

use App\Http\Models\RequestValidator;

class StudentFrontendFrom extends RequestValidator
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'nickname' => 'required',
            'open_id'  => 'required',
            'images'   => 'required',
//            'country'  => 'required',
//            'province' => 'required',
//            'city'     => 'required'
        ];
    }

    public function messages()
    {
        return [
            'nickname.required' => '用户昵称不能为空',
            'open_id.required'  => "open_id不能为空",
            'images.required'   => '微信头像不能为空',
//            'country.required'  => '国家不能为空',
//            'province.required' => '地区不能为空',
//            'city.required'     => '城市不能为空'
        ];
    }
}
